<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEmployeTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEmployeLabel_idEmploye}"/>
                    <h:outputText value="#{employeController.selected.idEmploye}" title="#{bundle.ViewEmployeTitle_idEmploye}"/>
                    <h:outputText value="#{bundle.ViewEmployeLabel_login}"/>
                    <h:outputText value="#{employeController.selected.login}" title="#{bundle.ViewEmployeTitle_login}"/>
                    <h:outputText value="#{bundle.ViewEmployeLabel_password}"/>
                    <h:outputText value="#{employeController.selected.password}" title="#{bundle.ViewEmployeTitle_password}"/>
                    <h:outputText value="#{bundle.ViewEmployeLabel_nom}"/>
                    <h:outputText value="#{employeController.selected.nom}" title="#{bundle.ViewEmployeTitle_nom}"/>
                    <h:outputText value="#{bundle.ViewEmployeLabel_prenom}"/>
                    <h:outputText value="#{employeController.selected.prenom}" title="#{bundle.ViewEmployeTitle_prenom}"/>
                    <h:outputText value="#{bundle.ViewEmployeLabel_dateNaissance}"/>
                    <h:outputText value="#{employeController.selected.dateNaissance}" title="#{bundle.ViewEmployeTitle_dateNaissance}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewEmployeLabel_dateDebutContrat}"/>
                    <h:outputText value="#{employeController.selected.dateDebutContrat}" title="#{bundle.ViewEmployeTitle_dateDebutContrat}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewEmployeLabel_dateFinContrat}"/>
                    <h:outputText value="#{employeController.selected.dateFinContrat}" title="#{bundle.ViewEmployeTitle_dateFinContrat}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewEmployeLabel_telephone}"/>
                    <h:outputText value="#{employeController.selected.telephone}" title="#{bundle.ViewEmployeTitle_telephone}"/>
                    <h:outputText value="#{bundle.ViewEmployeLabel_idTypeEmploye}"/>
                    <h:outputText value="#{employeController.selected.idTypeEmploye}" title="#{bundle.ViewEmployeTitle_idTypeEmploye}"/>
                    <h:outputText value="#{bundle.ViewEmployeLabel_idRestaurant}"/>
                    <h:outputText value="#{employeController.selected.idRestaurant}" title="#{bundle.ViewEmployeTitle_idRestaurant}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{employeController.destroyAndView}" value="#{bundle.ViewEmployeDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewEmployeEditLink}"/>
                <br />
                <h:commandLink action="#{employeController.prepareCreate}" value="#{bundle.ViewEmployeCreateLink}" />
                <br />
                <h:commandLink action="#{employeController.prepareList}" value="#{bundle.ViewEmployeShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewEmployeIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
